const express = require('express')

const app = express()

app.use(require('cors')())
app.use(express.json())
app.use('/uploads', express.static(__dirname + '/uploads'))
app.set('secret','123456')
require('./plugins/db')(app)

require('./routes/web')(app)
require('./routes/admin')(app)


app.listen(3000,() =>  {    
    console.log('在3000端口开启一个服务器');
});
